package com.ch.learning.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @Description
 * @Author cj-chenhao on 2020-01-17 15:42
 */
@RequestMapping(value = "/hello")
@RestController
@Slf4j
public class HelloController {

    @RequestMapping(value = "")
    public ModelAndView hello(){
        log.info("hello,word!");
        return new ModelAndView("hello");
    }


}
